﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CloudClip.ExtensionMethod;

namespace CloudClip.Login
{
    public class LoginManager
    {
        public bool Login(frmMain frmMain)
        {
            //取得設置檔裡需要的LoginProvider
            Setting setting = SettingHelper.GetSetting();

            ILoginProvider provider = 
                setting.LoginTypeString.CreateObjectByObjectIdentityString<ILoginProvider>();

            return provider.Login(frmMain);
        }
    }
}
